package com.streambolics.worseminton.data;

import javax.jdo.PersistenceManager;

import com.streambolics.data.Person;

public class HomeInfo extends WorsemintonConstructedObject
{
    private EventList      _Events;
    private InvitationList _Invitations;
    private LocationList   _Locations;

    public static HomeInfo load (PersistenceManager aDatabase, Person aUser)
    {
        return new HomeInfo ().doLoad (aDatabase, aUser);
    }

    protected HomeInfo doLoad (PersistenceManager aDatabase, Person aUser)
    {
        _Events = EventList.load (aDatabase, aUser);
        _Invitations = InvitationList.load (aDatabase, aUser);
        _Locations = LocationList.load (aDatabase, aUser);
        return this;
    }

    public EventList getEvents ()
    {
        return _Events;
    }

    public InvitationList getInvitations ()
    {
        return _Invitations;
    }

    public LocationList getLocations ()
    {
        return _Locations;
    }
}
